package client.inventory;

public enum ItemFlag {
    LOCK(1),
    SPIKES(2),
    COLD(4),
    UNTRADEABLE(8),
    KARMA_EQ(16),
    KARMA_USE(2);

    private int i;

    private ItemFlag(int i) {
        this.i = i;
    }

    public int getValue() {
        return this.i;
    }

    public boolean check(int flag) {
        return (flag & this.i) == this.i;
    }
}
